#include "mylib.h"

#if HAVE_EPOLL_H

int Epoll_create(int size)
{
	int n;
	if ((n=epoll_create(size)) < 0)
		err_sys("epoll_create error");
	return n;
}

int Epoll_ctl(int epfd, int op, int fd, struct epoll_event *event)
{
	int n;
	if ((n=epoll_ctl(epfd, op, fd, event)) < 0)
		err_sys("epoll_ctl error");
	return n;
}


int Epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout)
{
	int n;
	if ((n=epoll_wait(epfd, events, maxevents, timeout)) < 0)
		err_sys("epoll_wait error");
	return n;	
}

#endif
